package com.yuyue.springFramework.note07.entity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 定义生产环境配置类，使用自定义的环境条件注解
 */
@Configuration
@EnvConditional(EnvConditional.ENV.PROD)
public class ProdBeanConfig {
    @Bean
    public String dataSource(){
        return "生产环境";
    }
}
